package com.crrcdt.vue_project.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author liujun
 * @since 2020-10-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sp_manager")
@ApiModel(value="Manager对象", description="管理员表")
public class Manager implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "mg_id", type = IdType.AUTO)
    private Integer mgId;

    @ApiModelProperty(value = "名称")
    private String mgName;

    @ApiModelProperty(value = "密码")
    private String mgPwd;

    @ApiModelProperty(value = "注册时间")
    private Long mgTime;

    @ApiModelProperty(value = "角色id")
    private Integer roleId;

    @TableField(exist = false)
    private String roleName;

    private String mgMobile;

    private String mgEmail;

    @ApiModelProperty(value = "1：表示启用 0:表示禁用")
    private Integer mgState;

}
